const TABBAR_CHANGE_SUCCESS = 'TABBAR_CHANGE_SUCCESS'

const initialState = {
    selectedTab:'me',
}
// rxreducer
// rxaction
const tabbar = (state = initialState, action) => {
    switch (action.type) {
        case TABBAR_CHANGE_SUCCESS:
            return {selectedTab: action.payload}
        default:
            return state
    }
}
export default tabbar
